//
//  MyLifeDetailsViewController.m
//  ForengnMenu
//
//  Created by 请叫我雷锋 on 16/1/21.
//  Copyright © 2016年 余旺. All rights reserved.
//

#import "MyLifeDetailsViewController.h"
#import "MyLifeDetailsTableViewCell.h"

@interface MyLifeDetailsViewController ()<UITableViewDataSource,UITableViewDelegate>





@end

@implementation MyLifeDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    self.headViews=@[@"tuxiang1@2x.jpg"];
    self.headView2s=@[@"tuxiang2@2x.jpg"];
    self.headView3s=@[@"tuxiang3@2x.jpg"];
//    self.middleViews=@[@"makalong@2x.jpg"];
//    self.middleView2s=@[@"xiangjian@2x.jpg"];
    self.zanViews=@[@"iconfont-zanzan.png"];
//    self.commentViews=@[@"iconfont-pinglun@2x"];
    self.zanView2s=@[@"iconfont-zan.png"];
//    self.nameLabels=@[@"甘甜的苦涩"];
    self.nameLabel2s=@[@"你是我的眼"];
    self.nameLabel3s=@[@"匆匆那年"];
//    self.timeLabels=@[@"今天8:34"];
    self.timeLabel2s=@[@"今天10:30"];
    self.timeLabel3s=@[@"今天12:12"];
    self.replyViews=@[@"iconfont-pinglunhuifu.png"];
    self.replyLabels=@[@"回复"];
    self.replyView2s=@[@"iconfont-pinglunhuifu.png"];
    self.replyLabel2s=@[@"回复"];
//    self.contentLabels=@[@"感觉今天过的很好,了解了很多美食,味道都很不错,有时间小伙伴可以一起去尝尝。"];
    self.contentLabel2s=@[@"看起来还不错,好像去吃吃。"];
    self.contentLabel3s=@[@"等下我们一起去吃,知道你饿了。"];
//    self.zanLabels=@[@"",@""];
//    self.commentLabels=@[@"24"];
    self.zanLabel2s=@[@"苦涩的甘甜,匆匆那年,一只小萌兽,对你爱不完,漫长的岁月,花濑LOVE邪,甘甜的苦涩,人见人爱,花见花开"];
    
    self.jueLabels=@[@"等10人觉得很赞"];
    
    
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}



- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static  NSString * identifier=@"cell";
    
    MyLifeDetailsTableViewCell * cell=[tableView dequeueReusableCellWithIdentifier:identifier];
    
    cell.headView.image=[UIImage imageNamed:self.headViews[indexPath.row]];
    cell.headView2.image=[UIImage imageNamed:self.headView2s[indexPath.row]];
    cell.headView3.image=[UIImage imageNamed:self.headView3s[indexPath.row]];
    cell.middleView.image=[UIImage imageNamed:self.middleViews[indexPath.row]];
    cell.middleView2.image=[UIImage imageNamed:self.middleView2s[indexPath.row]];
    cell.zanView.image=[UIImage imageNamed:self.zanViews[indexPath.row]];
    cell.commentView.image=[UIImage imageNamed:self.commentViews[indexPath.row]];
    cell.zanView2.image=[UIImage imageNamed:self.zanView2s[indexPath.row]];
    cell.nameLabel.text=self.nameLabels[indexPath.row];
    cell.nameLabel2.text=self.nameLabel2s[indexPath.row];
    cell.nameLabel3.text=self.nameLabel3s[indexPath.row];
    cell.timeLabel.text=self.timeLabels[indexPath.row];
    cell.timeLabel2.text=self.timeLabel2s[indexPath.row];
    cell.timeLabel3.text=self.timeLabel3s[indexPath.row];
    cell.replyLabel.text=self.replyLabels[indexPath.row];
    cell.replyLabel2.text=self.replyLabel2s[indexPath.row];
    cell.replyView.image=[UIImage imageNamed:self.replyViews[indexPath.row]];
    cell.replyView2.image=[UIImage imageNamed:self.replyView2s[indexPath.row]];
    cell.contentLabel.text=self.contentLabels[indexPath.row];
    cell.contentLabel2.text=self.contentLabel2s[indexPath.row];
    cell.contentLabel3.text=self.contentLabel3s[indexPath.row];
    cell.zanLabel.text=self.zanLabels[indexPath.row];
    cell.commentLabel.text=self.commentLabels[indexPath.row];
    cell.zanLabel2.text=self.zanLabel2s[indexPath.row];
    cell.jueLabel.text=self.jueLabels[indexPath.row];
    
    tableView.separatorStyle=UITableViewCellAccessoryNone;
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}
- (CGFloat)tableView:(nonnull UITableView *)tableView heightForRowAtIndexPath:(nonnull NSIndexPath *)indexPath{
    return 485;
}




@end
